package xhwl.insurance.db.bean;


/**
* 数据库表定义
* @author lim
* @date 2017年2月9日
* @version 1.0
*/
public class SalePicInfo {
    public enum UploadStatus{START,FAIL,SUCCESS}
    public enum PicType{ID_CARD_FORNT,ID_CARD_BACK,HMO_CARD_FORNT}
    public int id;
    public int sale_id;
    public int pic_type=PicType.ID_CARD_FORNT.ordinal();
    public String save_path;
    public String url;

    public int status=UploadStatus.START.ordinal();//0开始1失败2成功
    public long create_time;
    public long update_time;

    @Override
    public String toString() {
        return "SalePicInfo{" +
                "id=" + id +
                ", sale_id=" + sale_id +
                ", pic_type=" + pic_type +
                ", save_path='" + save_path + '\'' +
                ", url='" + url + '\'' +
                ", status=" + status +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                '}';
    }
}
